﻿/**这里是抽屉样式*/
.page {
    overflow: auto;
}

.page-open {
    overflow-y: hidden;
}


/**抽屉关闭时，抽屉按钮的样式*/
.trigger {
    width: 25px;
    height: 30px;
    right: 24px;
    top: 35px;
    position: absolute;
}

/**抽屉打开时，抽屉按钮的样式*/
.trigger-open {
    display: none;
    /*right: 230px;*/
    transition: all 0.5s ease-in-out;
}

/**抽屉关闭时，抽屉的样式*/
.drawer {
    position: fixed;
    top: 0;
    right: -200px;
    width: 160px;
    height: 100%;
    padding: 15px 20px;
    background: #FFF;
    z-index: 1000;
    transition: all 0.5s ease-in-out;
}


    /**抽屉内菜单样式*/
    .drawer .close {
        position: relative;
        right: 0;
        float: right;
        top: 10px;
    }

    .drawer ul li {
        height: 40px;
        line-height: 40px;
    }

        .drawer ul li a {
            color: #1F55B1;
        }


/**抽屉打开时，抽屉的样式*/
.open {
    right: 0;
}

/**抽屉关闭时，span的样式，抽屉按钮图标是通过span标签画出来的*/
.trigger span {
    display: block;
    left: 0;
    width: 100%;
    height: 3px;
    background: #494949;
    position: absolute;
    opacity: 1;
    transform: rotate(0,0);
    transition: all 0.1s ease-in-out;
}

    .trigger span:nth-child(1) {
        top: 0px;
    }

    .trigger span:nth-child(2) {
        top: 6px;
    }

    .trigger span:nth-child(3) {
        top: 12px;
    }

/**抽屉打开时，span的样式*/
.trigger-open span:nth-child(1) {
    transform: rotate(45deg);
    top: 6px;
    z-index: 1000;
}

.trigger-open span:nth-child(2) {
    width: 0;
}

.trigger-open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 6px;
    z-index: 1000;
}

/**蒙层样式*/
.mask {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    background-color: #000;
    opacity: 0.4;
    z-index: 900;
    display: none;
}

.mask-open {
    display: block;
}
